<!-- html -->
<template>
  <!-- 作用域插槽 -->
  <slot name="title" :title="title">
  </slot>
  <slot name="content" :news="news">
  </slot>
</template>

<!-- js或ts -->
<script lang="ts">
export default {
  name: 'slotTest3Child'
}
</script>

<!-- js或ts -->
<script setup lang="ts">
//数据
let title = "国际新闻"
let news = ['国际新闻1', '国际新闻2', '国际新闻3']
</script>

<!-- 样式 -->
<style scoped></style>